//
//  ShoppingOneTableViewCell.h
//  JewelryStore
//
//  Created by apple on 2016/12/20.
//  Copyright © 2016年 com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MGSwipeTableCell.h"

typedef enum : NSInteger {
    AddType = 0,
    SubtractType,
} OPERATIONTYPE;

@class ShoppingOneTableViewCell;

@protocol  ShoppingOneCollectionViewCellDelegate <NSObject>
//每次选中/取消
- (void)selectOrCancel:(ShoppingOneTableViewCell *)cell;

//返回当前item总价
- (void)calculateItemTotalPrice:(ShoppingOneTableViewCell *)cell
                          total:(int)num
                           case:(int)type;

@end

@interface ShoppingOneTableViewCell : MGSwipeTableCell
@property (weak, nonatomic) IBOutlet UILabel *shopTitle;   //商品来源
@property (weak, nonatomic) IBOutlet UIImageView *shopImage;   //商品图片
@property (weak, nonatomic) IBOutlet UILabel *shopName;    //商品名称
@property (weak, nonatomic) IBOutlet UILabel *shopSize;    //商品款号
@property (weak, nonatomic) IBOutlet UILabel *shopSizeDecription;  //商品款号详情
@property (weak, nonatomic) IBOutlet UILabel *shopCategory;  //商品类型
@property (weak, nonatomic) IBOutlet UILabel *shopCategoryDecription;  //商品类型详情
@property (weak, nonatomic) IBOutlet UILabel *shopPrice;  //商品价格
@property (weak, nonatomic) IBOutlet UISegmentedControl *shopSegment;  //加减
@property (nonatomic, assign) id <ShoppingOneCollectionViewCellDelegate> oneDelegate;
@property (nonatomic, assign) BOOL isSelect;
@property (nonatomic, assign) int shopNum;
@property (nonatomic, copy) NSArray *model;

- (void)selectAll:(BOOL)isSelect;
- (void)selectNone:(BOOL)isSelect;
- (void)resetSelectAll;
- (void)resetSelectNone;


- (void)setupBtnSelect;
- (void)setupBtnNone;
@end
